/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tableautrieabstraitgenerique;

import java.util.Scanner;

/**
 *
 * @author pfares
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] toto) {
        TableauTrieEntier tab = new TableauTrieEntier (5,2);

        for (int i=0; i<toto.length; i++) {
            tab.insert(new Integer(toto[i]));
        }

        System.out.println(tab);

        System.out.print("Entrer un nombre a suprimer>");

        Scanner sc = new Scanner(System.in);

        String nb = sc.next();

        tab.supprimer(new Integer(nb));

        System.out.println(tab);

    }

}
